import { axios } from '@/utils/request'

/**
 * 查询核销数据
 *
 * @author zj
 * @date 2022-09-09 09:45:06
 */
export function biCouponWritePage (parameter) {
  return axios({
    url: '/biCouponWrite/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加核销数据
 *
 * @author zj
 * @date 2022-09-09 09:45:06
 */
export function biCouponWriteAdd (parameter) {
  return axios({
    url: '/biCouponWrite/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑核销数据
 *
 * @author zj
 * @date 2022-09-09 09:45:06
 */
export function biCouponWriteEdit (parameter) {
  return axios({
    url: '/biCouponWrite/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除核销数据
 *
 * @author zj
 * @date 2022-09-09 09:45:06
 */
export function biCouponWriteDelete (parameter) {
  return axios({
    url: '/biCouponWrite/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出核销数据
 *
 * @author zj
 * @date 2022-09-09 09:45:06
 */
export function biCouponWriteExport (parameter) {
  return axios({
    url: '/biCouponWrite/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}


/**
 * 导入核销数据
 *
 * @author zj
 * @date 2022-07-26 12:08:31
 */
 export function biCouponUpload (body) {
  return axios({
    url: '/biCouponWrite/upload',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data: body,
    loading: true
  })
}

/**
 * 核销数据列表
 *
 * @author zj
 * @date 2022-09-06 10:28:47
 */
 export function biCouponWriteList (parameter) {
  return axios({
    url: `/biCouponWrite/listByStoreId`,
    method: 'get',
    params: parameter
  })
}